package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author moguai
 * @version 1.0
 * @date 2022/3/17 11:15
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("users")
public class User {
    @TableId(type = IdType.AUTO)//自增
    private Integer id;
    private  String email;
    private String password;
    private String name;
    private Integer department_id;
    private Long create_time;
}
